/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: WildDuck
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/2/11 11:26
 * @version: 1.0
 */
public class WildDuck extends Duck{

    public WildDuck() {
        flyBehavior = new GoodFlyBehavior();
    }

    @Override
    public void display() {
        System.out.println("~~这是个野鸭子~~");
    }
}
